Algorithhm details added. Code not implemented yet.