Rcpp version of the Optimization function that returns the squared difference between user specified and calculated movement parameters.
Useful links