Added first draft of algorithms and implementation specification