Two types of new Lie algebras and corresponding hierarchies of evolution equations