Add heap sort algorithms implementation.