vjr cdx find algorithm, coded, but untested