algorithms: one of possible solutions for the3rd regression problem