Artificial Learning Algorithm From Scratch