Automation of an interactive program searching for straight segments in lognormal curves