Extract insertCDS from setLongestORF.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>