load_example('faces') now returns numpy arrays again.
Added an option for max edges.

- Needs cleaning up though.
Merge branch 'master' of github.com:amitgroup/amitgroup into dev-gustav2
Merge branch 'dev-gustav2' of github.com:amitgroup/amitgroup into dev-gustav2
Merge branch 'master' of github.com:amitgroup/amitgroup into dev-gustav2
Work on a sparse bernoulli mixture model.
Merge branch 'dev-gustav2' of github.com:amitgroup/amitgroup into dev-gustav2
Experimenting with sparse matrices in bernoulli mixture model.
Adapted bernoulli mixture model to handling sparse matrices.

- Needs a lot more testing though.
Removed import to old sparse bernoull mixture.
Made it possible to remove avoid saving templates in mixture model.
Added remix_iterable to BernoulliMixture.

- This allows remixing with any type of iterable.
Tweaks to bernoulli mixture model and added nn2d.

- nn2d.pyx (nn_resample2d) is for doing nearest-neighbor resampling of a 2d ndarray.
Added a mask support for code_parts. Might be temporary.
Critical bug in code_parts, calculating erratic edge counts.
Added back with nogil removed from last commit.
Added bspread, so that you can do the spreading of bedges separately.

- Made BernoulliMixture conform to Saveable.
- Added a synonym for inflate2d as dilate2d. Will change name eventually.
- DOC: Some tweaks in bedges.py.
Added example for using spare matrices with BernoulliMixture.
Merge branch 'dev-gustav2'