V1 of the algorithm. Works very well with even length numbers.