A New Metric on Symmetric Group and Applications to Block Permutation Codes