weather forecast by k-nearest neighbor algorithm