added analysis for divide and conquer method; 
added heap method