Remove was swaping 1 element beyond the end element.
We have to fill out the dynamic array using insert member method in order
to get right last_ index which is needed to get right search.