Completed vector class v1
Added sanitization function