Square Root Tricks by Codes