Added matrix multiplication and palindrome detection code