Version: 31th July 2014, 06:55 (GMT+1); added matrix inversion