Deep Architecture Learning Algorithm