Implement generatevec()
Implement powerMethod & company, except matVec()
Implement matVec() and finish powerMethod()