Matlab files for ECC implementation