adding my writeup and start of residual algorithm writeup