updated programs using pipes-works
updated programs using c++ pipes