phidistance function

Calculating the pairwise phi distance matrix between n vectors