Analysis and Implementation of High-Order Compact Finite Difference Schemes