Migrated leaftools functionality into scoretools.

Deleted leaftools.