Converts a list to a positional matrix