Added restructure method to convert 3-D structure to array