BASIS3, a data structure for $3$-dimensional sparse grids