Remover bad implementation of sorting: previosly using list insertions when sorting scores of paths.
Now paths are appended and sorted when full list is obtained.
Also added a parameter score_cutoff.