Changed appearance of benchmark.
Added CMesh class.
Use CMesh class instead of pure functions and global variables.