added matrix printing function