Simple matrix manipulation library