simple storage based on binary  tree