Fix examples of equals with BinaryPredicate

The __host__ __device__ attributes must be added to the operator,
not to the struct, and the operator must be declared as constant.
I also fixed the number of elements in the arrays.
Merge pull request #475 from Garthof/master

Fix examples of equals with BinaryPredicate