Transporting, splitting and merging of atomic ensembles in a chip trap