Algorithm aids in early detection of age-related eye disease