prefix_normalized_distance function

Calculate the normalized prefix distance between two strings