Scientists design computer program to improve online shopping