added an tail rec example. update or add new elememnt to a list.
added an tail rec example. update or add new elememnt to a list.