Serial version for those who wish to use it rather than the MPI version