Added SRM 614, modified modulo inverse code