Computing large value mod prime number . Useful in large factorial