c_topntail function

Find the first and last elements of all vectors in a list