B Tree with external memory write in C code and NetBens IDE