phi2 and r2 were incorrectly calculated

In DirectAlgorithm reconstruct_common.