use multiple return values instead of an array in InstancesTrainTestSplit

Using multiple return values is more idiomatic go than returning an array and splitting it again. And it's more readable.