function X=flatten(X);
% flatten - convert array into column vector
%
% flatten :: [[size]]->[[prod(size)]]

X=reshape(X,numel(X),1);
