Corrected MahalonobisGenerator class. Results should be correct excluding some round-off errors during calculation. Class isn't tested properly yet.