struct mextypes and changes on constructor MxArray

I have added the struct mextypes. With this class is it easier to get the matlab id of an object with the type. I have Changed the constructor : MxArray::MxArray(const std::vector<T>& v). I have tested it and it return the right values.
Test:

    std::vector<int> test(10);
	test[0]=1;
	test[1]=2;
	test[2]=3;
	test[3]=4;
	test[4]=-5;
    std::vector<double> test2(10);
	test[0]=1;
	test[1]=2;
	test[2]=3;
	test[3]=4;
	test[4]=-5;
	plhs[0] = MxArray(test);
	plhs[1] = MxArray(test);
The old function returned cells. This solution could be usefull for other thins and not just opencv.

I have moved the ClassIDOf and DepthOf maps to the header since I think they could be usefullt elsewhere. If you like this solution you should delete this maps from the cpp file ! I just wannted to pull request on this file.
Introduced MxTraits; Added direct vector to MxArray constructor
Added missing heap check; Removed dangerous vector<char> conversion;
Updated MxArray std::vector constructor
Merge pull request #101 from kyamagu/sapus-patch-4

Sapus patch 4
Removed unsigned negative check; Fixed return value warning; Fixed parentheses warning;
Removed extra MxTypes
Merge pull request #102 from kyamagu/no_second_traits

Removed extra MxTypes
Merge pull request #2 from kyamagu/master

update