Made vectorLength method static