Study of Self-Assembly of Octahedral Magnetite under an External Magnetic Field