PrintVector function with some tests