separating gallery as a proper module

gallery functions are now in core/gallery and no more in linalg.
a cycle has been made over all unit tsts to see if dependances are not broken.
All tests seem to behave with sse4.2 clang3.5 x64