AdamBJ/Practice — pull request #1 by AdamBJ (2014-10-02 01:20:08+00:00)
Title: Bugfix

Bugfix resolved problems with the special cases. Special cases were conceptually clarified in the comment, and the code dealing with them was rewritten. See in-line comments for a description of the special cases and how they were fixed.