Implementation of Matrix and Vector classes
