flat function

Flatten a table, array or matrix