Implemented index min pq