removed use of boost::multi_array