Updated gurls matlab with train and test functionalities