Implemented algorithm animation

Fixes #5, fixes #17