Passing some vector by pointer & SegFault pop up pointed out