Feature; Refactor

* Add bReverse and bReversed template functions
* Use Qt coding style, sort includes, class members, etc. in BeQtCore