Reduced sample size, I am using only 256MB for testing
Created breadth-first ordering for tree, updated main to reflect changes