Continued work on completing cascorr algorithm