Finding of square root by factorization method