Interesting use of recursion to split a time-series dataset for immediate consumption, which could certainly be applied when dealing with genetic data.