use non-quadratic tail recursive split here as well
Merge pull request #16 from mirleft/non-quadratic-tail-rec

use non-quadratic tail recursive split here as well