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