fix build on kubuntu 13.10

I used CLang as the compiler, but I guess the issue is that the
version of Eigen shipping with 13.10 does not provide a std::pow
function for matrices.

I'm not completely sure whether this change is correct, so please 
review thoroughly. (what's the power of a vector?)