efficient lifelong learning algorithm