using fixed size Eigen head(), tail() and segment()