Fortran module for the arrangement of vectors and matrices