Update CodePractice.cpp

Fixes find find_kth_smallest function