14

There are a number of things you can do to improve your code.
Use const references where practical
The parameters passed to the functions can be sped up by passing them as const references instead of by value. Doing so tells both the compiler and other readers of the code that the passed paramet...