C calisthenics with Linear search