Finished and tested mysqrt function