Made the B-Tree iteration function more cache efficient.