Implement Hit-or-miss, skeleton algoritms.