finished all modexp algorithms. seems to be functioning