Added a print function for Vector and Matrix