Systematically fills a given mesh array (cmesh) with d-dimensional points representing every corner of a d-dimensional hypercube. The function fills the successive dimensions of each point via depth-first recursion across all d dimensions.
fill_corners(cmesh, shock, shk_curs, dim_curs)
The mesh to be filled with corner points
The current shock vector being filled
Index in cmesh of the shock currently being filled
Index in the current shock of the dimension being filled
A list of: cmesh - d x 2^d array of corner points being filled, shk_curs - last point in cmesh that was filled