Implement Pettitt's test for detecting a break-point of central tendency shift. `trend::pettitt.test` might be used as a first reference.