End work with heap algorithms