A framework to study the cortical folding patterns