Continued working on bintree code