Added code for N choose K.