Harvard researchers have found a way to turn one-celled creatures into tiny, living bar magnets.