File system restructure and heaps coding