Added updated waveray.m and ldis.m to Task 2