Flat-band ferromagnetism in organic polymers designed by a computer simulation