started min heap implementation