A Parallel Optimization Design for Demosaicing