worked some on matrix library. need to figure out how to work with 2d arrays