add simple matrix library