Fix singleton function.
Complete exercises 7 and 8 (longest-sequence and my-filter functions).