Update heuristics.rb

Added the iostream headers and std:: to the C++ heuristics. This covers issues 1250.