A lightweight generic N-dimensional array library