Add simple stream sort demo that uses ordered sets

Add implementations of the simple stream sorting in C++ and Java. This
idea is borrowed from the Problem 1 of Chapter 1 of the book
'Programming Pearls'.