Reworked interval tree stuff, finished the Tree reduction steps