added extension method to flatten a multidimensional array

will add to the SOSOrthello package later