check_ppp_sample_validity function

Check the validity of ppp samples arranged in matrix format