Added measure function for scan command

- created math files for special structures, like point, edge and mat2
- added test for measure function, all work right