Added benchmarking tests and discovered and fixed a bug for the functor instance.