Towards the Design of Heuristics by Means of Self-Assembly