fix first two homeworks
proto experements, bad realization of cumquantiles function using heap structures