added matrix and vector library