Added add, adjust, getMin and smaller functions