ADD IntMatrix and related testcases