started functions to read/write STMX red-black trees [unfinished]