Generic ring for perfect modules of codimension 2