Flattening of nested arrays, array repetion operator etc

Plus, a bunch of example solutions for a few of the 99 Problems list. Please feel free to improve or suggest alternate solutions.