Update hals.m

1. removed the parameter beta. not required. came from existing code.
2. change the diag entries to assert non-zeros. previously we were setting the values to non-zeros.