[FEATURE,TEST] Adding a new, updated realignment module including tests.

In the future, this should replace the `reAlign()` function from the consensus module.