prim matrix