Using Matrices to Calculate Transmsmisison through 1D Layered Media