mat()/imat()/zero()/eye(): use stack memory with alloca() instead of heap memory