A Generalized Technology Gap Trade Model