Removed the vectorLength function and all calls to it