switch from vector<> to boost::multi_array<>