add function: det, rankOfMatrix