added counts_within_ratio_of method to Array extensions