Merge pull request #48 from nbdanielson/master

memory improvements for motion correction of large datasets