add python recursive sum and js mergesort