Merge pull request #48 from nbdanielson/master

memory improvements for motion correction of large datasets
Merge branch 'master' into nathan_3D_extract_fix