Fix the search of triplets, increased search range
Update Fortran interface