Moved from data1

Moved the meat of the work from data1. Will make the tree self-balancing and figure out the Sequence.