Optimization issues (passing arguments by value replaced on passing arguments by references, added const when is possible).