divide and conquer algorithm examples python