Fixed bug in examples that made the order of the algorithms incorrect