fixed bezouts and finished square roots: all done!