Removed dependency on java Math library

changed Math.atan2() to atan2()