add pseudocode, test stub, complete inversion counter solution