Fixed incorrect implementation of is_even and is_odd.