Created confusion matriz from i=0 to i=k nearest