Create closest.m