convert lists to arrays for friedman tests