An assignment from Artificial Intelligence - A Modern Approach by Russell and Norvig in Matlab