appendCrds()

Append a new coordinate/usrIds to the end of an old set. Also, return an inverse map from the new usrIds to the extended vector.

Parameters

newUsrIds (array)
An array of new user indices.
newCrd (array)
An array of new coordinates.
oldUsrIds (array)
An array of old user indices.
oldCrd (array)
An array of old coordinates.

Return Value

usrIds (array)
New user indice.
crd (array)
New coordinates.
newInvMap (array)
Inverse map from new usrIds to new 0 based index.