Fixes in algorithm
Sequences for testing purposes. Calculation gives immediate results