implemented vector sub class and distance method