bug correction: added include iostream and ordered included libraries, to fix non-compilation in gcc-Ubuntu