added functions to create identity matrices