Ridgefield fifth-grader's invention qualifies for global com