Add `mapcoords` function
Add `mapcoords` function

This takes a set of dimensions and coordinates and flattens both in a
standard way such that e.g. tensor products can be systematically
constructed.

jcmgray/quijy