quicksort: Add C implementation

This is more along the lines of CLR, which gives
a cleaner method of performing partition.

Signed-off-by: Prashant Malani <p.malani@gmail.com>
heap: Add C implementation

Signed-off-by: Prashant Malani <p.malani@gmail.com>