Implemented 'flatten-n'