Update inversions.cpp