Single Pass implementation show promise but doesn't work with { 3, 2, 6,
4, 5, 1, 4, 3, 5, 4 }.