Added function for removing of collinear points