Population genetics HW calculations