Port of heapsort code into rust code
Update of examples