Change signature of euclidean_distances_argmin()

THe function is passed the number of chunks instead of the number of
rows in a chunk.

Replaced custom code by gen_even_slices()