Fix Newton methods

Also:
- Change algorithm's names
- Add cost
- Add SerializableAAMFitterResult