Here is my version of the Finding Collinear Points By Using Merge-Sort (which is a coding challenge of Coursera Algorithm course from princeton - which may have some references from some other sources, so many sections in my code will similar to others.
This version will provide the correct solution and able to handle some errors throwing requirements correctly. Feel free to use to enhance your learning experience. Thank you !