created Matrix and Vector classes