refactoring findpair.nut
Fixed freeze on XXL maps (#16)