change vector class to inherit  from ruby vector class