Direction is a const string&
computeSeSp is templated, so it must go in headers. Fixes linker error.