expand_grid function

Cross product vectors in database.