Adds dataqc_polytrendtest w/ test

Also adds matlab script dataqc_polytrendtest.m