currently uses division algorithm to find quotient/remainder, also computes GCD/congruence with extended division algorithm