Added rough implementation of inversion counter
Implemented the inversion counter