Upated sum2 and added median program