missing main.cpp for kth element in an array