add method to support insert element to first index.