add f3p5 samples
update sample
add array based pdf
add the file to write histogram