Convert multidimensional BitArray functions to Cartesian idiom

this entierly removes gen_cartesian_map and related functions.