Added first n-gram comparison implementation