fixes typedefs to style guide CapCase

Note that I have adopted a convention of placing class-pointer typedefs to within the class itself:

```c++
class Foo {
 public:
  typedef boost::shared_ptr<Foo> Ptr;
}
```

I only changed the typedefs to this convention that were non-compliant with the style guide.