Zaslat SMS: Least squares data fitting with applications