Collection of basic algorithms , JAVA Pseudocode