SmallestElement complete