modified vector_dotproduct to properly work in parallel
Fix for C++11 is_callable mem-ptr with boost::reference_wrapper (extension)