Julia implementation

Julia port of the model