Klchan13 multi b

EMD stuff : this should now work with arbitrary distance functions. The function in predict_n2 is refactored to use bvecs to calculate an angle *or* receive an angle from another function (which might be more expedient, if you calculate this over multiple voxels).