Create ppca.py

Implement the ppca dimensionality reduction algorithm.