add histogram samples
edit myedge.cpp
compleated myedge.cpp