The Exact SIV test and the Exact RDIV test behave almost identically, except that the Exact SIV test also explores the directions in the final step. This patch consolidates the two duplicate implementations into a single function that can be used by both tests. While this change slightly affects things like debug output and metrics, it is not intended to alter the actual test results.