Lax representations and Lax operator algebras of isospectral and nonisospectral hierarchies of evolution equations