Fix logic error in triangle, fix typo in square.
Merge pull request #12 from jbrownbridge/patch-1

Fix logic error in triangle, fix typo in square.