Tree now stores ArrayList instead of fixed array for vertices.