A library for dairy cow herd simulation