Final project for Stat545A at UBC with J.Bryan