Optimizing point in square calculation, added to do for kalyan and sathvik