Tested working with 3 layes as well without regulazation. Regularzation
derivative not match numerical, found one bug that we calculate
regularized term too early, will investigate later.