Finding a value in an unordered Fortran array