Started on grouping of edges.

Started on making edges group together based on their object. Also
figured an util lib for grid based stuff might be useful, where I will
have formulas such as 1d->2d and vice versa as functions.
Grouping of edges finished

grouping on edges now work properly. Also uses the groupdata to paint an
image where you can see what groups are part of what.