Molecular computing approach for constraint assignment problem