added initializer list test and improved complexity of is_sorted_until