implemented AcollectionHelper.foldLeft & foldRight
changed to java convention type parameter names