added a vector class
changed over power iteration and added more methods