Getting some repetitions in answer

Problem : Convex Hull Implementation
I am getting some points repeated in the final answer. I don’t know why, unique function is not working. Need help.

My code link:

Your code seems a bit complicated. Please check this link: https://www.geeksforgeeks.org/convex-hull-using-divide-and-conquer-algorithm/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.