Found the bug in dvp-tree implementation (--i instead of ++i, arrrgh!).