removed old unused lookup

At this point the old lookup functions weren’t doing anything and were
just taking up space so I thought it would be best to get rid of them.
If you feel that they should stay and you might need them for later
then decline this change. I also improved the sort.bf