finish PiecewiseBoard C implementation and testing
update Ruby interface to PiecewiseBoard
finish move_gen.c implementation