Implemented the reduce method.

* implemented the method in the BaseStream class
* create tests for it
Added support for PHP 5.3
Deleted short array syntax in the test file
Deleted short array syntax
Modified the library to make it PHP 5.3 compliant
Merge pull request #1 from pepegar/dev

php 5.3 compliance