added perl scripts that calculate similarity measurements