Add equality exercise
Fix issue in sample code for 64-bit compatibility