Recommendation software with heapsort and a runtime of O(n/2)

Here’s My code for this program:

Any feedback would be appreciated!