added heap greater/less than qn