added equality checks: to avoid having lines with only two equal points where the same function is present on more than one line (aggregating all functions which are incidental to a given point on one line) and to avoid the same function repeating on a given line
added equality checks: to avoid having lines with only two equal points where the same function is present on more than one line (aggregating all functions which are incidental to a given point on one line) and to avoid the same function repeating on a given line

rgeorgiev583/FMI-DSP,rgeorgiev583/FMI-DSP