An implementation of Matrix and Vector classes.