Fixes #7. Impemented fortran code for minxspan