Fixing bug in Shell sort - Incorrect increments for 3x+1