Algorithm written. Not currently working. Code well documented.