added some methods in 'simple_types' and completed 'find_segments'