Data source: http://rosettacode.org/wiki/Flatten_a_list
