Add InversionCount and InversionCountTest
Add input test