code: public double module()
      {
          
          double v = 0;
          
          for(int i=0; i<vector.length; i++) {
              v = Math.pow(vector[i], 2);
          }
          
          return Math.sqrt(v);
          
      }
docs: Calculates the module of this vector
  
  @return the module of this vector