Added mathematics library for transformation support. Implemented PHash and added PHash specific tests