Modular Inverse for Integers using Fast Constant Time GCD Algorithm and its Applications