A parallel implementation of the GMRES method