Cleanup

This cleans up some minor things I noticed while reviewing algorithms I'm somewhat familiar with.