Magnetic behavior in an ordered Co nanorod array