Do a refactoring for bintree in order to pop the top and bottom node not deref
Do a refactor for swpercentile for handling the deviation from the desired ratio due to duplicated values in bintrees as an effect of pop operation.
Reason:
swpercentiletracker has slow performance in the case of several similar value.
swpercentiletracker has unnecessary operations if the ratio is fluctuating by delete from one and add to the other
swpercentiletracker needs to lookup both trees (mn and max) in delete operation due to delete_top and bottom operations. By using pop operation instead of delete only one tree must be looked up and it would be certain that the first added value in the node is the value we need to delete.
Tasks:
Reason: