week 6, 2-SUM & Median Maintainance