The W3(2) algebra and the related hierarchies