Similar Items: Fast Algorithm for Constrained Linear Inverse Problems