A file I/O program using a splay tree data structure to allow operations in log(n) time