Some algorithms implemented by me.