Build tree with a list of points