Added function for Tree printig