Cache-Efficient Multigrid Algorithms