Refactoring/debugging/optimizing of motion correction.
Merge branch '3D_SIMA' of github.com:losonczylab/sima into 3D_SIMA