add method bloom in AppleTree class