fixed a bug in Pairwise distance when the output Lp norm is zero (which results in a divide by zero issue).  Rewrote PairwiseDistance following Clement's suggestion to only have one codepath.  Fixed a small bug in extra/test/test.lua where the input to the non-batch fprop test was zero.