added Serializable to BuildingTree.java