calculate_resilience function

Calculate the resilience values for Ising landscapes