A simple matrix library