The Stability of an Infinite Gravitating Cylinder of Paramagnetic Material in the Presence of Magnetic Field