On Almost Primary Ideals and Generalized k- Primary Rings