Mastering K-Nearest Neighbors for Academic Excellence