Rewrote the trapezoidal split solver for Travelling Wave problem.

* Correctly implemented forward and backward euler with bc.
* Extracted common functions to header.