Cache oblivious algorithm.