Add arc distance for theano.
Merge branch 'pr/20'