refactor immutable B-tree file system