HW4: minor printing
HW4: improve WordLikelihoodProbabilities() performances

Signed-off-by: unknown <zkk12345@gmail.com>
HW4: print to file os.linesep instead of '\n'

Signed-off-by: unknown <zkk12345@gmail.com>