Update InversionCountAlgorithm.cpp

changed to read from terminal