Added indexed max/min heap implementation