Educational immutable, persistent vector implementation in C