Ruby algorithms