OPT : CSA computation in 4 different ways. Plus generation of binary file with CSA value for each slice