Random-access bandwidth and grid-based algorithms on massively parallel computers