Neural networks written in a sequential and parallel paradigms