compute_proj_dist function

Compute Frobenius norm of matrix-like objects x and y