DOES NOT COMPILE!!! This is the first attempt at a complete compaction implementation. Needs debugging/testing!