Giant Magnetoresistance in Magnetic Layered and Granular Materials