Implement the server stubs.

Now need to implement the algorithm core (which is given as an argument to the server functor)