add error when p < m in savitzkyGolay