learning generic functions in c++
update readme accordingly