Implemented scan operations.

Added scanLeft, scanLeft1, scanRight and scanRight1 to Array class.
Fixed scan1 functions.
Added Array's scan functions tests.
Merge branch 'scans' of https://github.com/pbzdyl/functionaljava into pbzdyl-scans