optimize new square root algorithm and Reduce operation for binary