Continue working on median, tree method, need to fully test tree construction