Genetic-Algorithm-based Light-Curve Optimization Applied to Observations of the W Ursae Majoris Star BH Cassiopeiae