Programming Long Short Term Memory Networks