Added comparison implementation and related samples