fixes issues #768, #794, #812
Util/ContainerUtils.h
add util funtion to iterate adjacent pairs of a stl compliant container