add heap sort of js