A variation of the Expectation Maximization clustering algorithm optimized for data forming line segments or elongated shapes