implemented a right nullspace method.
corrected sign of dot products in triangulation method for sampler.