Add helper functions to handle boundary segment permutations
This adds:
- a function cmputing the
insertionIndex
toboundarySegmentIndex
permutation, - a function to apply a permutation in-place to a container using
std::swap
, - a function directly computing and applying the permutation,
- a test that reads a gmsh file with physical segment data.