Adding block code for bit_flip_decoder_ss.

Adding code to the work function. Migrated two other functions from a just-deleted file to here: calculate_syndrome and have_match.