Added fiteredTree() method to fetch partial trees

Modified using @franzose suggestions