Building a deep neural network dnn with 20 lines of base r code from scratch