Perf: Removed unneccessary sqrt function
Formatted source code