added armadillo library for matrix operations
switched to armadillo for matrices