Adding new function to write alist files.

Adding a function writeAlistFile to write parity check (H) matrices into files using the alist format. Also adding a simple test for this function.