Split files, added datastructures for the RB trees