Added ANSI C k-selection program