Magnetic Logic Gate Using Ferromagnetic Hexagonal Nanodots