Translated Jon's AdaptRotation algorithm from Python into C++.
Merge branch 'master' of https://github.com/Erotemic/hesaff

Conflicts:
	CMakeLists.txt