bamdmux
fun <T> Collection<T>.split(n: Int=2) = withIndex().groupBy { (it.index/n) }.values.map{it.map { it.value }}