KNN Based Document Classifier Using K-d Tree : An Efficient Implementation