Added basic tensor operators (sum only at the moment) and test.
Added CMake libtensor_test macro and made test target depend on tests.