add cpp test comparing s and sf versions of HS-WCA
add test against direct simple implementation, fix gradient confusion