Assignment 2 Divide and Conquer Solution