A reconstruction algorithm for a subclass of instances of the 2-color problem