Shape Description and Classification Based on Extremal Points and Their Relations