Geovani, this functionality is related to the profile questions, so you should perform all changes in the code related to the profile questions functionality.
There is nothing more to say, except that the better way to make it work is to create a new profile question type instead of changing the existing select type which limit is 31 values.