Use k as index name instead of n.

It corresponds better to the usual "k-nearest neighbor" terminology.