dim reduction is working, added mathematica file to make unit tests