Add arc distance for theano.

I forgot to include this file in the previous PR :)