convert IndexSample from List<DecoratedKey> to byte[][]