I am trying to write a merge-sort implementation in c++ and have been using the following links as a tutorial: