added profiler for gcd

Added a profiling function to time the adjusted n_gcd