examples of algorithm usage

Some of the functions in std.algorithm are missing examples. This change adds a few.