returns the first element of the requested class from a list
[out,list] = getClass(list,className,default,varargin)