mapping method works... but it slow
added matrix/vector norm function
renamed matrix determinant to det, added sum of matrix function
added sampling functions to mrimage