Cut out unnecessary Library Accesses

Instead of Math.pow(x,2), switched to x * x in PiThread
Instead of Math.pow(args,-1), switched to 1.0/args in PiRunner