New Computing Method: Interaction-dependent State Change Of Nanomagnets