Library to select the optimal contract for cloud resources used in the SPACE4Cloud project