namesToColumns function

FUNCTION that modifies marks' names into columns