Removed unused inversions code; moved to attic file for later use if
necessary.