added ptp() and associated case test
formatted to pep8 and added doc
Fixed syntax error in ptp test
Corrected documentation.
Added no axis test for matrices.
Test results are now compared against numpy result
Merge pull request #1847 from Hengjean/ptp

added ptp() and associated case test