Changed base case; single scan through elements

Fewer recursive calls as base case is now len(seq) <= 1 rather than len(seq) < 1. 

Only scans through seq once to increase efficiency.
Merge pull request #46 from liam-m/patch-3

Changed base case; single scan through elements