Added binary tree, other changes

* Binary tree algorithm now in use as a more portable way of keeping
  track of scales already found/deleting duplicates. Previously we
  needed SRFI-69
* Refactored some other functions for readability