Cluster-based nearest neighbour classifier and its application on the lightning classification.