merge: pyramid shape functions and integration