function to split a list of files into odd and even