adding new element to proper place
adding new element to proper place in list when new element value is smaller than head value
adding new element to proper place in list when new element value is bigger than tail value
adding new element to proper place in list when new element should be beetwen head and tail