updated matgen to use matrix template functions
added rand - generates random matrix (real)
added random matrix option
added random symmetric real to matgen