Added metric and algorithms for size ratio, addresses #9