Implemented ph::for_each and unitTest for it.