Merge pull request #6 from vincent-coursera/master

More misc changes
 removed redundant struct def and added some comments
Last refactor of Makefile to make it easy to add binaries resulted not
linking with libstdc++
refactor: removed redundant 3 dimensional block struct
added comments
made global variables static
commented out debugging printfs
Merge branch 'master' of https://github.com/acgreek/CudaTestEnv
include/cuda_emu.hpp: Use a static const int instead of macro.
include/cuda_emu.hpp: Use enum instead of many macros.
include/cuda_emu.hpp: Reduce usage of typedefs.
include/wb.h: Avoid duplicate calculation.

Since we are going to compute the product of two variables anyway and store
it in a variable, move its computation earlier and use it to avoid computing
the multiplication more than once.

Also, we fix the type of the variable so that we don't get warnings by the
compiler telling us that we are comparing variables of different types.
gitignore: Ignore files produced by astyle or patch.
Makefile: Add target for reformatting sources.

This makes it easier to have a consistent format to adhere to.

Unfortunately, Debian's [current astyle][0] (v. 2.01) doesn't support the
option `--align-reference=name` for symmetry with `--align-pointer=name`.
Since version 2.02 supports this, one should use it when that version is
available.

[0]: http://packages.debian.org/sid/astyle
include/*.hpp: Reformat files with astyle.

We don't do that for wb.h as it uses a different style, which comes from
another source. Once a standard is agreed upon, everything should be merged
to keep duplicate efforts to a minimum.
Merge pull request #7 from rbrito/fixes-c++-idioms

Fixes C++ idioms
changed extension for  GenDataMP* source to .cc so the Makefile can find
them
commented out unused variable
make run3 now generates the matrix data again
removed some unnecessary copies