calculate average of squared errors
Merge branch 'optimize' of github.com:johnymontana/typecreep into optimize