A typical btree implementation which read and write btree structure to file, and  print to console