Replace x.^2 with x.*x to improve performance
Discussion in https://github.com/JuliaLang/julia/commit/18ab38e949207c17b6ef2715b54bd3ccfdf313d9
Merge branch 'master' of github.com:JuliaLang/julia