Made Lab 11 into a library and added optimization flags.