added function to project theano variables into the l2 ball
close issue #22