expand input data from tow to multiple dimensions, that is, from point fo vector