You don't need recSelSort() and your swap() is misplaced. swap() belongs inside recFindMin() and selSort() should be used to move the min element forward but instead you're decrementing it.
Code:selSort(array,i-1,length); /* i will never reach length which is the top level condition */