Implemented constructor for documentVector