Added a matrix class for rotating populations

Eventually will happen with the population builder