cpplinearalgebra updated with xy length