changed int/unsigned check if an iterator
fixed bug in std_lib_facilities.h and now using proper way to use iterator for the vector