Port tree class

Created by: ssomnath

Port the tree class from PySPM to pcroscopy

┆Issue is synchronized with this Asana task