Ordering nanometer-scale magnets using bacterial thread templates