Magnetic hysteresis in array of magnetic nanostructures by block copolymers