Generics matrix library for Haskel