Minor cleanup of algorithms code.
Merge pull request #131 from kmsquire/alg_cleanup

Minor cleanup of algorithms code.