Correction of bugs in map_builder for 'sort' algo + correction of transposition