New tests, all in one file
Initialise algorithm on first use
Bugs with moveHead fixed