Basic binary heap algorithms working.