An Analysis of Algorithms for the Dutch National Flag Problem. - McMaster, Colin L.; Graham, S.L.; Rivest, R.L. (Communications of the ACM, 1978)