Create TestFlattener.java

This implements a generic version of a list of list flattener.