Numerical Method for Comparison on Homomorphically Encrypted Numbers