Revert "remove sse() function from levenberg_marquardt for increased speed and simplicity"

This reverts commit ff3c14b921912d5c9e57bc3810cb6e851d8e2a2e.