Remove unneeded methods (can be found in Arrays jdk class).
Minor code imporvements.
part of #68.
Improve engine test to accomodate all required combinations.
part of #64.