Problem 54 works. This was about four debugger runs in. Not my best work.
Adding performance measureing code.