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 #1 from liam-m/patch-1

Changed base case; single scan through elements