Basic library maths, grouping and others stuffs used in the VirMat framework.