Partially revert "Refactor exchangeIndicesForCommAfterFtoC"
This reverts commit cc7bb07a.
The refactored version using std::find instead of std::unique does not work for vectors containing a zero as a receiving index. For example, this is the case in the app BoundaryLayer --> revert to the old version and revise the tests.