Fortran library for sorting and arrangement tools