The algorithm timer and GUI