Added primary wirelength calculation feature