Some computer problems solved from time to time to brush up my algorithmic skills. Sorting: Variant of the Dutch National Flag problem (http://en.wikipedia.org/wiki/Dutch_national_flag_problem)