Fixed the outlier recognition and deletion algorithm to clean up data points caused by the palm touching
the screen.

Added a function to calculate the average point in a QList<QPoint>