[FACTOR] Module

added function to get the module of a 2d vector