add stream.cpp
update makefile for building stream.cpp