WIP quickEncode
complete quickEncode
misc code cleanup/formatting
remove TODOs. Performance could technically be better but the additional complexity isn't worth it
test code cleanup, remove silly TestTrees trait, make use of === consistent