Add sequential implementation of sloan algorithm.

It also includes the calculation of wavefronts before and after
execution.