Added binary helper functions
Implemented create tree feature for open